home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / imglib2 / imgIEncoder.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  103 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM imgIEncoder.idl
  3.  */
  4.  
  5. #ifndef __gen_imgIEncoder_h__
  6. #define __gen_imgIEncoder_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIClipboardImage; /* forward declaration */
  18.  
  19. class nsIFile; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    imgIEncoder */
  23. #define IMGIENCODER_IID_STR "ccc5b3ad-3e67-4e3d-97e1-b06b2e96fef8"
  24.  
  25. #define IMGIENCODER_IID \
  26.   {0xccc5b3ad, 0x3e67, 0x4e3d, \
  27.     { 0x97, 0xe1, 0xb0, 0x6b, 0x2e, 0x96, 0xfe, 0xf8 }}
  28.  
  29. /**
  30.  * imgIEncoder interface
  31.  *   Currently this is a very specific encoder designed to encode a native clipboard image as a JPEG out to disk.
  32.  *   It is not intended to be a generic image encoder. 
  33.  *   
  34.  */
  35. class NS_NO_VTABLE imgIEncoder : public nsISupports {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(IMGIENCODER_IID)
  39.  
  40.   /**
  41.     Encode a native clipboard image
  42.   **/
  43.   /* void encodeClipboardImage (in nsIClipboardImage aClipboardImage, out nsIFile aImageFile); */
  44.   NS_IMETHOD EncodeClipboardImage(nsIClipboardImage *aClipboardImage, nsIFile **aImageFile) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_IMGIENCODER \
  50.   NS_IMETHOD EncodeClipboardImage(nsIClipboardImage *aClipboardImage, nsIFile **aImageFile); 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  53. #define NS_FORWARD_IMGIENCODER(_to) \
  54.   NS_IMETHOD EncodeClipboardImage(nsIClipboardImage *aClipboardImage, nsIFile **aImageFile) { return _to EncodeClipboardImage(aClipboardImage, aImageFile); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_IMGIENCODER(_to) \
  58.   NS_IMETHOD EncodeClipboardImage(nsIClipboardImage *aClipboardImage, nsIFile **aImageFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncodeClipboardImage(aClipboardImage, aImageFile); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class _MYCLASS_ : public imgIEncoder
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_IMGIENCODER
  69.  
  70.   _MYCLASS_();
  71.  
  72. private:
  73.   ~_MYCLASS_();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(_MYCLASS_, imgIEncoder)
  81.  
  82. _MYCLASS_::_MYCLASS_()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. _MYCLASS_::~_MYCLASS_()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* void encodeClipboardImage (in nsIClipboardImage aClipboardImage, out nsIFile aImageFile); */
  93. NS_IMETHODIMP _MYCLASS_::EncodeClipboardImage(nsIClipboardImage *aClipboardImage, nsIFile **aImageFile)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* End of implementation class template. */
  99. #endif
  100.  
  101.  
  102. #endif /* __gen_imgIEncoder_h__ */
  103.